<?php

namespace App\Middleware;

use App\Constant\AdminConst;
use App\Util\UrlUtil;
use Elite\Infrastructure\Middleware\Middleware;
use Elite\Infrastructure\Server\HttpCode;
use Elite\Infrastructure\Server\Request;
use Elite\Infrastructure\Server\Response;
use Elite\Infrastructure\Server\Session;

class ApiReqLimit  extends Middleware {

    /**
     * @inheritDoc
     */
    public function handle(\Closure $next) {
        // 请求到业务前
//        if ($over) {
//           return null;
//        }
        $n = $next();

        // 请求从业务出来后。可以从Response中获取body
//        if ($ban) {
//            return null;
//        }
        return $n;


    }

}